package lxt.dao;

import java.util.Date;
import java.util.List;
import java.util.Map;

import lxt.entity.ChargeRecord;

public interface ChargeRecordDao extends ABseDao {
	public List<Map<String, Object>> loadAllCharge(String orderId,
			String clientName, String startDate, String endDate,
			Integer offset, Integer length);

	public List<?> loadByPageWithClient(String clientId, Date startDate,
			Date endDate, Integer offset, Integer pageSize);

	public int countLast(ChargeRecord chargeRecord);

	public List<?> queryResumeForUpdatePre(ChargeRecord chargeRecord);
	/**
	 * 根据订单Id删除数据
	 */
	public void deleteOrder(String orderId);
	/**
	 * 根据订单id和客户id查询nextChargeDate
	 * @param orderId
	 * @param clientId
	 * @return
	 */
	public ChargeRecord queryByNextChargeDate(String orderId,String clientId);
}
